﻿using AppService.IService.System_setting;
using Domain.Entity.Message;
using Domain.IRepository.System_setting;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;

namespace AppService.Service.System_setting
{
    [Dependency(ServiceLifetime.Scoped)]
    public class TreeService : ITreeService
    {

        public ITreeRepository treeRepository { get; set; }

        public TreeService(ITreeRepository treeRepository)
        {
            this.treeRepository = treeRepository;
        }

        public List<Tree> GetTrees(int id)
        {
            return treeRepository.GetTrees(id);
        }
    }
}
